package com.pj.ca.result;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.security.PrivateKey;
import java.security.PublicKey;
import java.security.cert.X509Certificate;
import java.util.Date;

/**
 * 描述：
 *
 * @author pengjun
 * @date 2021/11/3 15:15
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class CertResult {

    /**
     * 公钥
     */
    private PublicKey publicKey;
    /**
     * 私钥
     */
    private PrivateKey privateKey;
    /**
     * 证书
     */
    private X509Certificate cert;


    /**
     * 证书开始时间
     */
    private Date startTime;

    /**
     * 证书失效时间
     */
    private Date endTime;

    /**
     * 证书序列号
     */
    private String serialNumber;

}

